package com.dayuanit.dy15.atm.enums;

public enum TransferStatusEnum {

    //转账订单状态：1-待转账 2-转账成功 3-转账失败 4-已取消
    待转账(1, "待转账"),
    转账成功(2, "转账成功"),
    转账失败(3, "转账失败"),
    已取消(4, "已取消");


    private int k;
    private String v;

    private TransferStatusEnum(int k, String v) {
        this.k = k;
        this.v = v;
    }

    public static TransferStatusEnum get(int k) {
        for (TransferStatusEnum en : TransferStatusEnum.values()) {
            if (en.getK() == k) {
                return en;
            }
        }
        return null;
    }

    public int getK() {
        return k;
    }

    public String getV() {
        return v;
    }
}
